Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

feat: add backlog state drift audit - #13

Merged
JTInventory merged 1 commit into
mainfrom
fm/firstmate-backlog-state-reconciler-0629
Jun 29, 2026
Merged

JTInventory merged 1 commit into
mainfrom
fm/firstmate-backlog-state-reconciler-0629

Conversation

@JTInventory

Copy link
Copy Markdown
Owner

Summary

Firstmate now has a read-only backlog audit that surfaces stale supervision bookkeeping before recovery or teardown decisions depend on it.

The audit reports tasks listed in both In flight and Done, state meta files without matching in-flight backlog entries, in-flight backlog items with no meta file, PR-ready or merged-looking in-flight items, and Watchlist items that already have local adoption signals. It exits nonzero when drift is found and prints No changes made. on every path.

Supersedes #12 because the actionable delivery branch must be fm/firstmate-backlog-state-reconciler-0629 for Firstmate identity checks and teardown.

Validation

  • bash tests/fm-backlog-audit.test.sh
  • bash -n bin/fm-backlog-audit.sh tests/fm-backlog-audit.test.sh

Limitations

This first pass is local and read-only. It does not query GitHub or Treehouse live state; it detects PR-ready/merged drift from backlog wording and local state/*.meta adoption signals.


Compound Engineering
Codex

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant